<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>诗词大考验</title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		function IsPC() {
		    var userAgentInfo = navigator.userAgent;
		    var Agents = ["Android", "iPhone",
		                "SymbianOS", "Windows Phone",
		                "iPad", "iPod"];
		    var flag = true;
		    for (var v = 0; v < Agents.length; v++) {
		        if (userAgentInfo.indexOf(Agents[v]) > 0) {
		            flag = false;
		            break;
		        }
		    }
		    return flag;
		}
		var flag = IsPC(); //true为PC端，false为手机端
		if (flag==true) {
			open('./pc/index.html','_self')
		} else{
			open('./phone/index.html','_self')
		}
	</script>
</html>
